﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BulletinModel;
namespace BulletinMvc.Lib
{
    interface IFeedbackBL
    {
        int GetCommentCountByprojectSN(string projectSN);
        decimal GetAverageStarvalueByprojectSN(string projectSN);
        bool HaveCommentByprojectSN(string projectSN);
        void DeleteCommentByprojectSN(string projectSN);
        //int GetAveragerStar(string projectSN);
        void AddComment(string projectSN, int StarValue, string TextValue);
        IQueryable<Feedback> GetFeedBackList(string projectSN);
        IQueryable<Feedback> GetAllFeedBackList(string projectSN);
        bool DeleteCommentByID(int ID);
        Feedback GetCommentByID(int ID);

    }
}
